Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 29, 2025

small drive by optimization realized while working on #3965

@ondrejmirtes ondrejmirtes merged commit f615b1a into phpstan:2.1.x Apr 29, 2025
89 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

assertType('non-falsy-string&numeric-string', $value->format('u'));
assertType('int', (int)$value->format('u'));
assertType('bool', (int)$value->format('u') !== 0);
assertType('int<min, -1>|int<1, max>', (int)$value->format('u'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is obviously wrong test change - see #3980 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants